Ext.require([
    'Ext.form.*',
    'Ext.layout.container.Column',
    'Ext.window.MessageBox',
    'Ext.fx.target.Element'
]);

Ext.onReady(function() {
	
	var url = APP_PATH + "/getMenuJsonData.action";
	
	var editForm = Ext.create('Ext.FormPanel', {
        title: '<b>菜单管理</b>',
        contentEl: 'editDiv',
        frame: true,
        fieldDefaults: {
            labelWidth: 110,
            labelStyle: 'color:green;padding-left:4px'
        },
        width: 600,
        iconCls: 'icon-grid',
        renderTo: 'editForm',
        bodyPadding: 10,
        buttons: [{
            text: '保存',
            handler: function() {
               if(editForm.getForm().isValid()) {
            	   submitForm("menuSave.action");
                }
            }
        },{
            text: '重置',
            handler: function() {
            	document.all.form_Post.reset();
            }
        },{
            text: '返回',
            handler: function() {
            	submitForm("menuList.action");
            }
        }]
    });
	
});